﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Styles/Site.master" AutoEventWireup="true"  CodeBehind="Default.aspx.cs" Inherits="Shop4Aggies._Default" %>
<%@ Register src="Controls/PopularItem.ascx" tagname="PopularItem" tagprefix="uc1" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
    <asp:LoginView ID="LoginView_VisitorGreeting" runat="server">
    <AnonymousTemplate>
      Welcome to the Shop!
    </AnonymousTemplate>
        <LoggedInTemplate>
        Hi <asp:LoginName ID="LoginName_Welcome" runat="server" />. Thanks for coming back. 
        </LoggedInTemplate>
    </asp:LoginView>
    </h2>
    <table style="width: 800;">
    <tr><td colspan="2"></td></tr>
    <tr>
    <td style="width: 300px; vertical-align: top;">               
        <uc1:PopularItem ID="PopularItem1" runat="server" />
    </td>
    <td style="vertical-align:text-top; width:500px; font-size: large; text-align:right;">
            <asp:LoginView runat="server" ID="Adminview">
                <RoleGroups>
                    <asp:RoleGroup Roles="Administrator">
                        <ContentTemplate>
                            Admin Tasks:<br />
                            <ul>
                            <li>
                            <a id="A1" runat="server" href="~/Admin/ManageUsers.aspx">Manage Users</a>
                            </li>
                            <li>
                            <a id="A2" runat="server" href="~/Admin/AddCategory.aspx">Add Category</a>
                            </li>
                            </ul>
                        </ContentTemplate>
                    </asp:RoleGroup>
                </RoleGroups>
            </asp:LoginView>
        </td>
    </tr>
    </table>

   
</asp:Content>
